package com.yinkgh.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource; 


/**
 * 静态数据源 
 * 默认defaultTargetDataSource 数据源在父类中定义
 * @author yinkgh
 *
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
	
    @Override  
    protected Object determineCurrentLookupKey() {  
           return DataSourceContextHolder. getDataSource();  
    }

}
